package com.dataseek.iot.core.enums;


/**
 * @author cc
 * @Title: 数据类型
 * @Description: 数据类型
 * @date 2021/9/265:37 下午
 * @since 1.0
 */
public enum DataType {
    Int("int", "整型",1), Long("long", "长整型",2), Float("float", "单精度浮点型",3),
    Double("double", "双精度浮点型",4), Text("text", "字符串",5), Bool("bool", "布尔型",6),
    Date("date", "时间",7), Enum("enum", "枚举",8), Array("array","数组",9),
    Objects("object", "结构体",10), File("file", "文件",11), Password("password", "密码",12),
    GeoPoint("geo", "地理位置",13), Img("img", "图片",14);

    private String code;

    private String name;

    private int index;

    DataType(String code, String name, int index) {
        this.code = code;
        this.name = name;
        this.index = index;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}

